package com.tbit.uqbike.webmanager.dao.core;

import com.tbit.uqbike.object.pojo.NewUserActivity;
import com.tbit.uqbike.object.pojo.vo.NewUserActivityNameVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Author: chen
 * @Description: 新用户赠送
 * @Date: 创建于 13:57 2020/6/5
 */
public interface NewUserActivityDao {
    /**
     * 分页
     */
    List<NewUserActivity> queryPage(Map<String, Object> map);

    /**
     * 总数
     */
    Integer queryCount(Map<String, Object> map);

    /**
     * 新增
     */
    void insert(NewUserActivity newUserActivity);

    /**
     * 删除
     */
    void del(Integer newuseractivityId);

    /**
     * 修改
     */
    void edit(NewUserActivity newUserActivity);

    /**
     * 通过id获取
     *
     * @param accountId
     * @return
     */
    NewUserActivity getByAccountId(Integer accountId);

    /**
     * 查询绑定了新用户赠送配置的区域
     *
     * @param couponId
     * @return
     */
    List<NewUserActivityNameVO> queryNewUserActivityNameListByCouponId(@Param("couponId") Integer couponId);
}
